package soar.template.springboot2.websocket.server.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class Receiver
{
    private static final Logger logger = LoggerFactory
            .getLogger(Receiver.class);

    public void receiveMessage(String message)
    {
        Player.broadcastMessage(message);
        logger.info("message: {}", message);
    }
}
